package com.itsu.spbspider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itsu.spbspider.entity.News;

import java.util.List;

/**
 * @author suben
 * @create time 2020/2/6 15:30
 */
public interface NewsService {

    List<News> getAllNews() throws Exception;

    IPage<News> getByPage(Integer current, Integer pageSize) throws Exception;

    IPage<News> getByJobNamePage(Integer current, Integer pageSize, String jobName) throws Exception;

    List<News> randomGetNews(String appKey, Integer size) throws Exception;
}
